package org.mparts.client.ui;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.HasValue;
import com.google.gwt.user.client.ui.IsWidget;
import com.sencha.gxt.widget.core.client.button.TextButton;
import com.sencha.gxt.widget.core.client.event.SelectEvent.HasSelectHandlers;

public interface IMenuView extends IsWidget {
	public void setPresenter(IMenuPresenter presenter);

    public interface IMenuPresenter {
    	void goTo(Place place);
    	public IMenuView getView();
    }
    
    public HasSelectHandlers getSearchButton();

    public HasValue<String> getSearchField();

    public HasSelectHandlers getMainButton();
    public HasSelectHandlers getCatalogButton();
    public HasSelectHandlers getAddressButton();
    public void setUserName(String userName);
    
    public void setLoginData( String userName, String loginURL );
    public TextButton getLoginButton();
    public TextButton getLoadCatalogButton();
}
